<?php
class Bank {
	private $people;
	
	public function __construct($people) {
		$this->people = $people;
	}
	
	public function findTheDifferentObject() {
		for(var $i=0; $i< count($this->people); $i++) {
			if(get_class($this->people[$i]) != "Person") {
				return $i;
			}
		}
	}
	
	public function makeNewArray() {
		$differentObjectIndex = $this->findTheDifferentObject();
		unset($this->people[$differentObjectIndex]);
		return $this->people;
	}
	
	public function printMethods($person) {
		$refl = new ReflectionClass($person);
		$methods = $refl->getMethods();
		foreach($methods as $method) {
			echo $method->getName() . "<br />";
		}
	}
}
?>